projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57020c3
)
ostbuild: Ensure we return the right process exit code
author
Colin Walters
<walters@verbum.org>
Fri, 27 Jan 2012 13:51:12 +0000
(08:51 -0500)
committer
Colin Walters
<walters@verbum.org>
Fri, 27 Jan 2012 16:09:53 +0000
(11:09 -0500)
src/ostbuild/pyostbuild/subprocess_helpers.py
patch
|
blob
|
history
diff --git
a/src/ostbuild/pyostbuild/subprocess_helpers.py
b/src/ostbuild/pyostbuild/subprocess_helpers.py
index 0d1ca8d6098da01fa8d1ca0c4dbf53ad3849e127..116d0fbc9ec8e913db504334c78349f4a83fd6df 100755
(executable)
--- a/
src/ostbuild/pyostbuild/subprocess_helpers.py
+++ b/
src/ostbuild/pyostbuild/subprocess_helpers.py
@@
-126,7
+126,10
@@
def run_sync_monitor_log_file(args, logfile, cwd=None, env=None,
loop = Mainloop.get(None)
+ proc_estatus = None
def _on_pid_exited(pid, estatus):
+ global proc_estatus
+ proc_estatus = estatus
failed = estatus != 0
warnfilter.finish(not failed)
if fatal_on_error and failed:
@@
-137,4
+140,4
@@
def run_sync_monitor_log_file(args, logfile, cwd=None, env=None,
loop.quit()
loop.watch_pid(proc.pid, _on_pid_exited)
loop.run()
- return proc
.returncode
+ return proc
_estatus